package com.zoe.config;

import org.springframework.context.ApplicationEvent;

/**
 * @Author Zoe.Zhang
 * @Date: 2021/08/12
 * @Description 自定义事件机制
 */
public class DIYApplicationEvent extends ApplicationEvent {
    private String address;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public DIYApplicationEvent(Object source) {
        super(source);
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
